package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医保局交易记录对象 transaction_record
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@ApiModel(value = "TransactionRecord", description = "医保局交易记录对象")
public class TransactionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "交易时间")
    private Date tradingTime;

    /** 交易类型(0-支出 1-收入) */
    @ApiModelProperty(name = "交易类型(0-支出 1-收入)")
    private Long type;

    /** 交易对象 */
    @ApiModelProperty(name = "交易对象")
    private Long userId;

    /**
     * 参保人员-也是交易对象
     */
    @ApiModelProperty(name = "参保人员-也是交易对象")
    private InsuredPersons insuredPersons;

    /**
     * 交易金额
     */
    @ApiModelProperty(name = "交易金额")
    private BigDecimal money;

    /**
     * 交易说明
     */
    @ApiModelProperty(name = "交易说明")
    private String remark;

    public InsuredPersons getInsuredPersons() {
        return insuredPersons;
    }

    public void setInsuredPersons(InsuredPersons insuredPersons) {
        this.insuredPersons = insuredPersons;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setTradingTime(Date tradingTime)
    {
        this.tradingTime = tradingTime;
    }

    public Date getTradingTime() 
    {
        return tradingTime;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tradingTime", getTradingTime())
            .append("type", getType())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
